import 'package:flutter/material.dart';

class Rate extends StatelessWidget {
  TextEditingController _controller =
      TextEditingController.fromValue(TextEditingValue(text: ''));

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Color(0xff23AFDC),
        elevation: 0,
        title: Text('培训日志'),
        centerTitle: true,
      ),
      body: Column(
        children: <Widget>[
          TextFormField(
            controller: _controller,
            style: TextStyle(fontSize: 14, color: Colors.grey),
            decoration: InputDecoration(
              border: InputBorder.none,
              hintText: '请填写教练员评价！',
              hintStyle: TextStyle(color: Color(0xff999999), fontSize: 14),
            ),
            autofocus: false,
          ),
          MaterialButton(
            elevation: 0,
            minWidth: 40,
            height: 20,
            color: Color(0xff23AFDC),
            child: Text('匿名评价',
                style: TextStyle(color: Colors.white, fontSize: 10)),
            onPressed: () {},
          ),
        ],
      ),
    );
  }
}
